﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Logout : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string flag = Request.QueryString["flag"];
        if (Request.QueryString["me"]!=null && Request.QueryString["me"]== "out")
        {
            Session.Clear();
            Session.Abandon();
            Response.Redirect("Admin_panel/index.aspx");
        }
        if (flag == "0")
        {
            Session.Clear();
            Session.Abandon();
            Response.Redirect("Trangchu.aspx");
        }
        else
        {
            Session.Clear();
            Session.Abandon();
            Response.Redirect("Trangchu.aspx");
        }
       

       
    }
}